package main.Q2501_2600;

import java.util.Arrays;
import java.util.Comparator;

public class Q2541_2550 {
    public static void main(String[] args) {
        System.out.println("Question2541：");
        System.out.println("Question2542：");
        System.out.println("Question2543：");
        System.out.println("Question2544：");
        System.out.println("Question2545：根据第 K 场考试的分数排序");
        System.out.println("Question2546：");
        System.out.println("Question2547：");
        System.out.println("Question2548：");
        System.out.println("Question2549：");
        System.out.println("Question2550：");
    }
}

class Question2545 {
    public int[][] sortTheStudents(int[][] score, int k) {
        Arrays.sort(score, new Comparator<int[]>() {
            @Override
            public int compare(int[] o1, int[] o2) {
                return o2[k]-o1[k];
            }
        });
        return score;
    }
}